<template>
  <RouterView />
</template>
<script setup>
import { onMounted } from 'vue'
import { userThemeStore } from '@/stores/userTheme.js'
const userTheme = userThemeStore()
onMounted(() => {
  // 读取响应式 ref 的值
  document.documentElement.setAttribute('data-theme', userTheme.theme)
})
</script>